import http from '@/utils/axios'
import { ApproveParams } from '@/api/model/approveModel'

enum Api {
  Approve = '/statement/dir-flow/update', // 审批
  SendMsg = '/statement/customerInterface/sendMessage' // 催办消息接口
}

/**
 * 审批
 * @param params
 */
export function approve(params: ApproveParams) {
  return http.request({
    url: Api.Approve,
    method: 'POST',
    params
  })
}

/**
 * 发送消息
 * @param params
 */
export function sendMsg(params: { count: number; dirId: string }) {
  return http.request({
    url: Api.SendMsg,
    method: 'GET',
    params
  })
}
